

<!DOCTYPE html>
<html lang="zh-CN" data-default-color-scheme=auto>



<head>
  <meta charset="UTF-8">
  <link rel="apple-touch-icon" sizes="76x76" href="https://img.mkerosene.cn/touxiang.jpg">
  <link rel="icon" href="https://img.mkerosene.cn/touxiang.jpg">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=5.0, shrink-to-fit=no">
  <meta http-equiv="x-ua-compatible" content="ie=edge">
  
    <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
  
  <meta name="theme-color" content="#2f4154">
  <meta name="author" content="Kerosene W">
  <meta name="keywords" content="">
  
    <meta name="description" content="0x01. 李华的红包  Linux下binwalk分离，得到一个txt（24,43,13,13,12,21,43） 使用010改变图片高度(WORD Y_image)，下方为一个鼓，由此联想到敲击码    对应解码提交flag  0x02. Retrieve the passcode   附件为一个rar文件和scatter.txt，这里的txt文件名联想到红帽杯EBCDIC.txt，从文件名入">
<meta property="og:type" content="article">
<meta property="og:title" content="ISCC2021-wp">
<meta property="og:url" content="http://example.com/2021/05/12/ISCC2021-wp/index.html">
<meta property="og:site_name" content="追求源于热爱">
<meta property="og:description" content="0x01. 李华的红包  Linux下binwalk分离，得到一个txt（24,43,13,13,12,21,43） 使用010改变图片高度(WORD Y_image)，下方为一个鼓，由此联想到敲击码    对应解码提交flag  0x02. Retrieve the passcode   附件为一个rar文件和scatter.txt，这里的txt文件名联想到红帽杯EBCDIC.txt，从文件名入">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="https://img.mkerosene.cn/iscc.jpg">
<meta property="article:published_time" content="2021-05-12T05:13:34.000Z">
<meta property="article:modified_time" content="2021-10-14T15:52:23.535Z">
<meta property="article:author" content="Kerosene W">
<meta property="article:tag" content="writeup">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:image" content="https://img.mkerosene.cn/iscc.jpg">
  
  
  <title>ISCC2021-wp - 追求源于热爱</title>

  <link  rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4/dist/css/bootstrap.min.css" />


  <link  rel="stylesheet" href="https://cdn.jsdelivr.net/npm/github-markdown-css@4/github-markdown.min.css" />
  <link  rel="stylesheet" href="/lib/hint/hint.min.css" />

  
    
    
      
      <link  rel="stylesheet" href="https://cdn.jsdelivr.net/npm/highlight.js@10/styles/github-gist.min.css" />
    
  

  
    <link  rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@3/dist/jquery.fancybox.min.css" />
  


<!-- 主题依赖的图标库，不要自行修改 -->

<link rel="stylesheet" href="//at.alicdn.com/t/font_1749284_ba1fz6golrf.css">



<link rel="stylesheet" href="//at.alicdn.com/t/font_1736178_kmeydafke9r.css">


<link  rel="stylesheet" href="/css/main.css" />

<!-- 自定义样式保持在最底部 -->


  <script id="fluid-configs">
    var Fluid = window.Fluid || {};
    var CONFIG = {"hostname":"example.com","root":"/","version":"1.8.13","typing":{"enable":true,"typeSpeed":70,"cursorChar":"_","loop":false},"anchorjs":{"enable":true,"element":"h1,h2,h3,h4,h5,h6","placement":"right","visible":"hover","icon":"❡"},"progressbar":{"enable":true,"height_px":3,"color":"#29d","options":{"showSpinner":false,"trickleSpeed":100}},"copy_btn":true,"image_zoom":{"enable":true,"img_url_replace":["",""]},"toc":{"enable":true,"headingSelector":"h1,h2,h3,h4,h5,h6","collapseDepth":0},"lazyload":{"enable":true,"loading_img":"https://img.mkerosene.cn/loading.gif","onlypost":false,"offset_factor":2},"web_analytics":{"enable":true,"baidu":null,"google":null,"gtag":null,"tencent":{"sid":null,"cid":null},"woyaola":null,"cnzz":null,"leancloud":{"app_id":"FI1uAFAYz0Q3MPDiORqd0JAN-gzGzoHsz","app_key":"EhKAjMe3bmq0WLTSgktGg2OC","server_url":null,"path":"window.location.pathname","ignore_local":false}},"search_path":"/local-search.xml"};
  </script>
  <script  src="/js/utils.js" ></script>
  <script  src="/js/color-schema.js" ></script>
</head>


<body>
  <header style="height: 70vh;">
    <nav id="navbar" class="navbar fixed-top  navbar-expand-lg navbar-dark scrolling-navbar">
  <div class="container">
    <a class="navbar-brand" href="/">
      <strong>mKerosene</strong>
    </a>

    <button id="navbar-toggler-btn" class="navbar-toggler" type="button" data-toggle="collapse"
            data-target="#navbarSupportedContent"
            aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
      <div class="animated-icon"><span></span><span></span><span></span></div>
    </button>

    <!-- Collapsible content -->
    <div class="collapse navbar-collapse" id="navbarSupportedContent">
      <ul class="navbar-nav ml-auto text-center">
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/">
                <i class="iconfont icon-home-fill"></i>
                首页
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/archives/">
                <i class="iconfont icon-archive-fill"></i>
                归档
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/categories/">
                <i class="iconfont icon-category-fill"></i>
                分类
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/tags/">
                <i class="iconfont icon-tags-fill"></i>
                标签
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/links/">
                <i class="iconfont icon-link-fill"></i>
                友链
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/about/">
                <i class="iconfont icon-user-fill"></i>
                关于
              </a>
            </li>
          
        
        
          <li class="nav-item" id="search-btn">
            <a class="nav-link" target="_self" href="javascript:;" data-toggle="modal" data-target="#modalSearch" aria-label="Search">
              &nbsp;<i class="iconfont icon-search"></i>&nbsp;
            </a>
          </li>
        
        
          <li class="nav-item" id="color-toggle-btn">
            <a class="nav-link" target="_self" href="javascript:;" aria-label="Color Toggle">&nbsp;<i
                class="iconfont icon-dark" id="color-toggle-icon"></i>&nbsp;</a>
          </li>
        
      </ul>
    </div>
  </div>
</nav>

    <div class="banner" id="banner" parallax=true
         style="background: url('https://img.mkerosene.cn/default.png') no-repeat center center;
           background-size: cover;">
      <div class="full-bg-img">
        <div class="mask flex-center" style="background-color: rgba(0, 0, 0, 0.3)">
          <div class="page-header text-center fade-in-up">
            <span class="h2" id="subtitle" title="ISCC2021-wp">
              
            </span>

            
              <div class="mt-3">
  
  
    <span class="post-meta">
      <i class="iconfont icon-date-fill" aria-hidden="true"></i>
      <time datetime="2021-05-12 13:13" pubdate>
        2021年5月12日 下午
      </time>
    </span>
  
</div>

<div class="mt-1">
  
    <span class="post-meta mr-2">
      <i class="iconfont icon-chart"></i>
      3.5k 字
    </span>
  

  
    <span class="post-meta mr-2">
      <i class="iconfont icon-clock-fill"></i>
      
      
      11 分钟
    </span>
  

  
  
    
      <!-- LeanCloud 统计文章PV -->
      <span id="leancloud-page-views-container" class="post-meta" style="display: none">
        <i class="iconfont icon-eye" aria-hidden="true"></i>
        <span id="leancloud-page-views"></span> 次
      </span>
    
  
</div>

            
          </div>

          
        </div>
      </div>
    </div>
  </header>

  <main>
    
      

<div class="container-fluid nopadding-x">
  <div class="row nomargin-x">
    <div class="d-none d-lg-block col-lg-2"></div>
    <div class="col-lg-8 nopadding-x-md">
      <div class="container nopadding-x-md" id="board-ctn">
        <div class="py-5" id="board">
          <article class="post-content mx-auto">
            <!-- SEO header -->
            <h1 style="display: none">ISCC2021-wp</h1>
            
              <p class="note note-info">
                
                  本文最后更新于：1 年前
                
              </p>
            
            <div class="markdown-body">
              <h2 id="0x01-李华的红包"><a href="#0x01-李华的红包" class="headerlink" title="0x01. 李华的红包"></a>0x01. 李华的红包</h2><p><img src="https://img.mkerosene.cn/20210523152843.png" srcset="https://img.mkerosene.cn/loading.gif" lazyload alt="20210523152843"><br><img src="http://img.mkerosene.cn/hongbao2.jpg" srcset="https://img.mkerosene.cn/loading.gif" lazyload alt="hongbao2" style="zoom:67%;" /></p>
<ul>
<li>Linux下binwalk分离，得到一个txt（24,43,13,13,12,21,43）</li>
<li>使用010改变图片高度(WORD Y_image)，下方为一个鼓，由此联想到敲击码</li>
</ul>
<p><img src="https://img.mkerosene.cn/20210523160048.png" srcset="https://img.mkerosene.cn/loading.gif" lazyload alt="20210523160048"><br><img src="http://img.mkerosene.cn/hongbao2 - 副本.jpg" srcset="https://img.mkerosene.cn/loading.gif" lazyload alt="hongbao2 - 副本" style="zoom:50%;" /></p>
<img src="https://img.mkerosene.cn/20200923093233881.png" srcset="https://img.mkerosene.cn/loading.gif" lazyload alt="20200923093233881" style="zoom:67%;" />
对应解码提交flag

<h2 id="0x02-Retrieve-the-passcode"><a href="#0x02-Retrieve-the-passcode" class="headerlink" title="0x02. Retrieve the passcode"></a>0x02. Retrieve the passcode</h2><img src="https://img.mkerosene.cn/20210523154532.png" srcset="https://img.mkerosene.cn/loading.gif" lazyload alt="20210523154532.png" style="zoom:50%;" />

<ul>
<li>附件为一个rar文件和<code>scatter.txt</code>，这里的txt文件名联想到红帽杯EBCDIC.txt，从文件名入手，010内直接更改编辑。本题的<code>scatter</code>意思为散点，在MATLAB 为函数 在向量 x 和 y 指定的位置创建一个包含圆形的散点图。内数据格式为num,num,num;</li>
<li>使用Python处理数据，画出散点图即为压缩包密码（或直接暴力）</li>
</ul>
<figure class="highlight python"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br></pre></td><td class="code"><pre><code class="hljs python"><span class="hljs-keyword">import</span> matplotlib.pyplot <span class="hljs-keyword">as</span> plt<br><span class="hljs-keyword">import</span> numpy <span class="hljs-keyword">as</span> np<br><span class="hljs-keyword">import</span> math<br><br>lines = <span class="hljs-built_in">open</span>(<span class="hljs-string">&quot;scatter.txt&quot;</span>, <span class="hljs-string">&quot;r&quot;</span>).readlines()<br>X = []<br>Y = []<br><span class="hljs-keyword">for</span> line <span class="hljs-keyword">in</span> lines:<br>    x,y,z = line.split(<span class="hljs-string">&quot;:&quot;</span>)<br>    X.append(x)<br>    Y.append(y)<br><br>plt.scatter(X, Y, s=<span class="hljs-number">1</span>, color=<span class="hljs-string">&#x27;red&#x27;</span>)<br><br>plt.xlim((-<span class="hljs-number">20</span>, <span class="hljs-number">50</span>))<br>plt.ylim((-<span class="hljs-number">20</span>, <span class="hljs-number">50</span>))<br><br>plt.show()<br><br></code></pre></td></tr></table></figure>

<ul>
<li>打开pdf为一串摩斯密码，解码得flag</li>
</ul>
<h2 id="0x03-小明的宠物兔"><a href="#0x03-小明的宠物兔" class="headerlink" title="0x03. 小明的宠物兔"></a>0x03. 小明的宠物兔</h2><p><img src="https://img.mkerosene.cn/20210523171212.png" srcset="https://img.mkerosene.cn/loading.gif" lazyload alt="20210523171212.png"><br><img src="http://img.mkerosene.cn/rabbit.png" srcset="https://img.mkerosene.cn/loading.gif" lazyload alt="rabbit.png" style="zoom:60%;" /><br>binwalk-&gt;crc爆破（zip-crc-cracker-master  python crack.py xxx.zip)</p>
<h2 id="0x04-give-me-discount"><a href="#0x04-give-me-discount" class="headerlink" title="0x04. give_me_discount"></a>0x04. give_me_discount</h2><p>音频隐写MP3Stego使用方法：<code>decode -X xxx.mp3</code></p>
<hr>
<h2 id="0x05-ISCC客服冲冲冲（一）"><a href="#0x05-ISCC客服冲冲冲（一）" class="headerlink" title="0x05. ISCC客服冲冲冲（一）"></a>0x05. ISCC客服冲冲冲（一）</h2><figure class="highlight php"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br></pre></td><td class="code"><pre><code class="hljs php">&lt;!DOCTYPE html&gt;<br>&lt;html&gt;<br>	&lt;head&gt;<br>		&lt;meta charset=<span class="hljs-string">&quot;UTF-8&quot;</span>&gt;<br>		&lt;title&gt;test&lt;/title&gt;<br>		&lt;script type=<span class="hljs-string">&quot;text/javascript&quot;</span> src=<span class="hljs-string">&quot;function.js&quot;</span>&gt;&lt;/script&gt;<br>		&lt;link rel=<span class="hljs-string">&quot;stylesheet&quot;</span> href=<span class="hljs-string">&quot;basic.css&quot;</span> /&gt;<br>	&lt;/head&gt;<br>	&lt;body&gt;<br>		&lt;h1 align=<span class="hljs-string">&quot;center&quot;</span>&gt;请在<span class="hljs-number">20</span>秒内让真正的ISCC客服一号赢得本次投票&lt;/h1&gt;<br>		&lt;div <span class="hljs-class"><span class="hljs-keyword">class</span> = &quot;<span class="hljs-title">voting_Block</span>&quot;&gt;</span><br><span class="hljs-class">			&lt;<span class="hljs-title">div</span> <span class="hljs-title">class</span> = &quot;<span class="hljs-title">left_Block</span>&quot;&gt;</span><br><span class="hljs-class">				&lt;<span class="hljs-title">h3</span> <span class="hljs-title">align</span>=&quot;<span class="hljs-title">center</span>&quot;&gt;<span class="hljs-title">ISCC</span>客服一号&lt;/<span class="hljs-title">h3</span>&gt;</span><br><span class="hljs-class">				&lt;<span class="hljs-title">img</span> <span class="hljs-title">src</span>=&quot;<span class="hljs-title">ISCC</span>.<span class="hljs-title">jpg</span>&quot; <span class="hljs-title">style</span>=&quot;<span class="hljs-title">width</span>: 102.4<span class="hljs-title">px</span>;<span class="hljs-title">height</span>:76.8<span class="hljs-title">px</span>&quot; /&gt;</span><br><span class="hljs-class">				&lt;<span class="hljs-title">p</span> <span class="hljs-title">id</span>=&quot;<span class="hljs-title">left_votes</span>&quot; <span class="hljs-title">align</span>=&quot;<span class="hljs-title">center</span>&quot;&gt;0&lt;/<span class="hljs-title">p</span>&gt;</span><br><span class="hljs-class">				&lt;<span class="hljs-title">button</span> <span class="hljs-title">id</span> = &quot;<span class="hljs-title">left_button</span>&quot; <span class="hljs-title">align</span>=&quot;<span class="hljs-title">center</span>&quot; <span class="hljs-title">onclick</span>=&quot;<span class="hljs-title">voting</span>(<span class="hljs-title">this</span>)&quot;&gt;投票&lt;/<span class="hljs-title">button</span>&gt;</span><br><span class="hljs-class">			&lt;/<span class="hljs-title">div</span>&gt;</span><br><span class="hljs-class">			&lt;<span class="hljs-title">div</span> <span class="hljs-title">class</span> = &quot;<span class="hljs-title">right_Block</span>&quot;&gt;</span><br><span class="hljs-class">				&lt;<span class="hljs-title">h3</span> <span class="hljs-title">align</span>=&quot;<span class="hljs-title">center</span>&quot;&gt;1<span class="hljs-title">SCC</span>客服一号&lt;/<span class="hljs-title">h3</span>&gt;</span><br><span class="hljs-class">				&lt;<span class="hljs-title">img</span> <span class="hljs-title">src</span>=&quot;1<span class="hljs-title">SCC</span>.<span class="hljs-title">jpg</span>&quot; <span class="hljs-title">style</span>=&quot;<span class="hljs-title">width</span>: 102.4<span class="hljs-title">px</span>;<span class="hljs-title">height</span>:76.8<span class="hljs-title">px</span>&quot; /&gt;</span><br><span class="hljs-class">				&lt;<span class="hljs-title">p</span> <span class="hljs-title">id</span>=&quot;<span class="hljs-title">right_votes</span>&quot; <span class="hljs-title">align</span> = &quot;<span class="hljs-title">center</span>&quot;&gt;0&lt;/<span class="hljs-title">p</span>&gt;</span><br><span class="hljs-class">				&lt;<span class="hljs-title">button</span> <span class="hljs-title">id</span> = &quot;<span class="hljs-title">right_button</span>&quot; <span class="hljs-title">align</span>=&quot;<span class="hljs-title">center</span>&quot; <span class="hljs-title">onclick</span>=&quot;<span class="hljs-title">voting</span>(<span class="hljs-title">this</span>)&quot;&gt;投票&lt;/<span class="hljs-title">button</span>&gt;</span><br><span class="hljs-class">			&lt;/<span class="hljs-title">div</span>&gt;</span><br><span class="hljs-class">		&lt;/<span class="hljs-title">div</span>&gt;</span><br><span class="hljs-class">		&lt;<span class="hljs-title">font</span> <span class="hljs-title">color</span>=&quot;<span class="hljs-title">black</span>&quot;&gt;&lt;<span class="hljs-title">p</span> <span class="hljs-title">id</span>=&quot;<span class="hljs-title">Time</span>&quot; &gt;20&lt;/<span class="hljs-title">p</span>&gt;&lt;/<span class="hljs-title">font</span>&gt;</span><br><span class="hljs-class">	&lt;/<span class="hljs-title">body</span>&gt;</span><br><span class="hljs-class">&lt;/<span class="hljs-title">html</span>&gt;</span><br></code></pre></td></tr></table></figure>

<ul>
<li>网站首页为一个动态，一个静态，f12查看源码，直接更换两button元素id，实现反转，静等js弹出flag</li>
</ul>
<h2 id="0x06-这是啥"><a href="#0x06-这是啥" class="headerlink" title="0x06. 这是啥"></a>0x06. 这是啥</h2><figure class="highlight html"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><code class="hljs html"><span class="hljs-tag">&lt;<span class="hljs-name">html</span>&gt;</span><br><span class="hljs-tag">&lt;<span class="hljs-name">body</span>&gt;</span><br><span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">style</span>=<span class="hljs-string">&quot;display:none;&quot;</span>&gt;</span>[][(![]+[]).....[+[]]+([]+&#123;&#125;)[!+[]+!![]+!![]+!![]+!![]]+(!![]+[])[+[]]+([]+&#123;&#125;).....!![]+[])))()<span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span><br>介是嘛？<span class="hljs-tag">&lt;<span class="hljs-name">br</span>&gt;</span><br><span class="hljs-tag">&lt;<span class="hljs-name">br</span>&gt;</span><br><span class="hljs-tag">&lt;/<span class="hljs-name">form</span>&gt;</span><br><span class="hljs-tag">&lt;/<span class="hljs-name">body</span>&gt;</span><br><span class="hljs-tag">&lt;/<span class="hljs-name">html</span>&gt;</span><br></code></pre></td></tr></table></figure>

<ul>
<li><p>第4行jsfuck编码</p>
<ul>
<li><p>JSFuck 可以让你只用 6 个字符 <a href=""></a>!+ 来编写 JavaScript 程序。</p>
</li>
<li><p>其他一些基本的表达：</p>
</li>
<li><p>false       =&gt;  ![]</p>
</li>
<li><p>true        =&gt;  !![]</p>
</li>
<li><p>undefined   =&gt;  [][[]]</p>
</li>
<li><p>NaN         =&gt;  +[![]]</p>
</li>
<li><p>0           =&gt;  +[]</p>
</li>
<li><p>1           =&gt;  +!+[]</p>
</li>
<li><p>2           =&gt;  !+[]+!+[]</p>
</li>
<li><p>10          =&gt;  [+!+[]]+[+[]]</p>
</li>
<li><p>Array       =&gt;  []</p>
</li>
<li><p>Number      =&gt;  +[]</p>
</li>
<li><p>String      =&gt;  []+[]</p>
</li>
<li><p>Boolean     =&gt;  ![]</p>
</li>
<li><p>Function    =&gt;  [][“filter”]</p>
</li>
<li><p>eval        =&gt;  [][“filter”]<a href="CODE">“constructor”</a>()</p>
</li>
<li><p>window      =&gt;  [][“filter”][“constructor”](“return this”)()</p>
</li>
</ul>
</li>
</ul>
<h2 id="0x07-Web01"><a href="#0x07-Web01" class="headerlink" title="0x07. Web01"></a>0x07. Web01</h2><figure class="highlight php"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br></pre></td><td class="code"><pre><code class="hljs php"><span class="hljs-meta">&lt;?php</span><br>&lt;p&gt;code.txt&lt;/p&gt;<br><br><span class="hljs-keyword">if</span> (<span class="hljs-keyword">isset</span> (<span class="hljs-variable">$_GET</span>[<span class="hljs-string">&#x27;password&#x27;</span>])) &#123;<br>     <br>    <span class="hljs-keyword">if</span> (preg_match (<span class="hljs-string">&quot;/^[a-zA-Z0-9]+$/&quot;</span>, <span class="hljs-variable">$_GET</span>[<span class="hljs-string">&#x27;password&#x27;</span>]) === <span class="hljs-literal">FALSE</span>) <span class="hljs-comment">//要求含有数字字母，正则表达式匹配</span><br>    &#123;<br>        <span class="hljs-keyword">echo</span> <span class="hljs-string">&#x27;&lt;p&gt;You password must be alphanumeric&lt;/p&gt;&#x27;</span>;<br>    <br>    &#125;<br>      <span class="hljs-keyword">else</span> <span class="hljs-keyword">if</span> (strlen(<span class="hljs-variable">$_GET</span>[<span class="hljs-string">&#x27;password&#x27;</span>]) &lt; <span class="hljs-number">8</span> &amp;&amp; <span class="hljs-variable">$_GET</span>[<span class="hljs-string">&#x27;password&#x27;</span>] &gt; <span class="hljs-number">9999999</span>)<span class="hljs-comment">//长度&lt;8,数值&gt;9999999</span><br>    &#123;    <br>    <br>        <span class="hljs-keyword">if</span> (strpos (<span class="hljs-variable">$_GET</span>[<span class="hljs-string">&#x27;password&#x27;</span>], <span class="hljs-string">&#x27;*-*&#x27;</span>) !== <span class="hljs-literal">FALSE</span>)<span class="hljs-comment">//包含*-*</span><br>        &#123;<br>            <span class="hljs-keyword">die</span>(<span class="hljs-string">&#x27;Flag: &#x27;</span> . <span class="hljs-variable">$flag</span>);<br>        &#125;<br>        <span class="hljs-keyword">else</span><br>        &#123;<br>            <span class="hljs-keyword">echo</span>(<span class="hljs-string">&#x27;&lt;p&gt;*-* have not been found&lt;/p&gt;&#x27;</span>);<br>        &#125;<br>    &#125;<br>    <span class="hljs-keyword">else</span><br>    &#123;<br>        <span class="hljs-keyword">echo</span> <span class="hljs-string">&#x27;&lt;p&gt;Invalid password&lt;/p&gt;&#x27;</span>;<br>    &#125;<br>&#125;<br><span class="hljs-meta">?&gt;</span><br></code></pre></td></tr></table></figure>

<p><code>url</code><a target="_blank" rel="noopener" href="http://39.96.91.106:7040/?password=1e8*-*"><code>/?password=1e8*-*</code></a></p>
<hr>

            </div>
            <hr>
            <div>
              <div class="post-metas mb-3">
                
                  <div class="post-meta mr-3">
                    <i class="iconfont icon-category"></i>
                    
                      <a class="hover-with-bg" href="/categories/Cyber-Security/">Cyber-Security</a>
                    
                  </div>
                
                
                  <div class="post-meta">
                    <i class="iconfont icon-tags"></i>
                    
                      <a class="hover-with-bg" href="/tags/writeup/">writeup</a>
                    
                  </div>
                
              </div>
              
                <p class="note note-warning">
                  
                    本博客所有文章除特别声明外，均采用 <a target="_blank" href="https://creativecommons.org/licenses/by-sa/4.0/deed.zh" rel="nofollow noopener noopener">CC BY-SA 4.0 协议</a> ，转载请注明出处！
                  
                </p>
              
              
                <div class="post-prevnext">
                  <article class="post-prev col-6">
                    
                    
                      <a href="/2021/08/23/sqli%E5%9F%BA%E7%A1%80/">
                        <i class="iconfont icon-arrowleft"></i>
                        <span class="hidden-mobile">sqli基础</span>
                        <span class="visible-mobile">上一篇</span>
                      </a>
                    
                  </article>
                  <article class="post-next col-6">
                    
                    
                      <a href="/2021/05/08/QFNUCTF-wp/">
                        <span class="hidden-mobile">QFNUCTF-wp</span>
                        <span class="visible-mobile">下一篇</span>
                        <i class="iconfont icon-arrowright"></i>
                      </a>
                    
                  </article>
                </div>
              
            </div>

            
              <!-- Comments -->
              <article class="comments" id="comments" lazyload>
                
                  
                
                
  <div id="twikoo"></div>
  <script type="text/javascript">
    Fluid.utils.loadComments('#comments', function() {
      Fluid.utils.createScript('https://cdn.jsdelivr.net/npm/twikoo@1/dist/twikoo.all.min.js', function() {
        var options = Object.assign(
          {"envId":"blog-3gentarg3e6a1b5e","region":"ap-shanghai","path":"window.location.pathname"},
          {
            el: '#twikoo',
            path: 'window.location.pathname',
            onCommentLoaded: function() {
              Fluid.plugins.initFancyBox('#twikoo .tk-content img:not(.tk-owo-emotion)');
            }
          }
        )
        twikoo.init(options)
      });
    });
  </script>
  <noscript>Please enable JavaScript to view the comments</noscript>


              </article>
            
          </article>
        </div>
      </div>
    </div>
    
      <div class="d-none d-lg-block col-lg-2 toc-container" id="toc-ctn">
        <div id="toc">
  <p class="toc-header"><i class="iconfont icon-list"></i>&nbsp;目录</p>
  <div class="toc-body" id="toc-body"></div>
</div>

      </div>
    
  </div>
</div>

<!-- Custom -->


    

    
      <a id="scroll-top-button" aria-label="TOP" href="#" role="button">
        <i class="iconfont icon-arrowup" aria-hidden="true"></i>
      </a>
    

    
      <div class="modal fade" id="modalSearch" tabindex="-1" role="dialog" aria-labelledby="ModalLabel"
     aria-hidden="true">
  <div class="modal-dialog modal-dialog-scrollable modal-lg" role="document">
    <div class="modal-content">
      <div class="modal-header text-center">
        <h4 class="modal-title w-100 font-weight-bold">搜索</h4>
        <button type="button" id="local-search-close" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body mx-3">
        <div class="md-form mb-5">
          <input type="text" id="local-search-input" class="form-control validate">
          <label data-error="x" data-success="v"
                 for="local-search-input">关键词</label>
        </div>
        <div class="list-group" id="local-search-result"></div>
      </div>
    </div>
  </div>
</div>
    

    
  </main>

  <footer class="text-center mt-5 py-3">
  <div class="footer-content">
     <div class="copyright">&copy;2020 - 2021 By Kerosene.W</div> <a href="https://hexo.io" target="_blank" rel="nofollow noopener"><span>Hexo</span></a> <i class="iconfont icon-love"></i> <a href="https://github.com/fluid-dev/hexo-theme-fluid" target="_blank" rel="nofollow noopener"><span>Fluid</span></a> 
  </div>
  
  <div class="statistics">
    
    

    
      
        <!-- LeanCloud 统计PV -->
        <span id="leancloud-site-pv-container" style="display: none">
            总访问量 
            <span id="leancloud-site-pv"></span>
             次
          </span>
      
      
        <!-- LeanCloud 统计UV -->
        <span id="leancloud-site-uv-container" style="display: none">
            总访客数 
            <span id="leancloud-site-uv"></span>
             人
          </span>
      

    
  </div>


  

  
</footer>


  <!-- SCRIPTS -->
  
  <script  src="https://cdn.jsdelivr.net/npm/nprogress@0/nprogress.min.js" ></script>
  <link  rel="stylesheet" href="https://cdn.jsdelivr.net/npm/nprogress@0/nprogress.min.css" />

  <script>
    NProgress.configure({"showSpinner":false,"trickleSpeed":100})
    NProgress.start()
    window.addEventListener('load', function() {
      NProgress.done();
    })
  </script>


<script  src="https://cdn.jsdelivr.net/npm/jquery@3/dist/jquery.min.js" ></script>
<script  src="https://cdn.jsdelivr.net/npm/bootstrap@4/dist/js/bootstrap.min.js" ></script>
<script  src="/js/events.js" ></script>
<script  src="/js/plugins.js" ></script>

<!-- Plugins -->


  <script  src="/js/local-search.js" ></script>



  
    <script  src="/js/img-lazyload.js" ></script>
  



  



  
    <script  src="https://cdn.jsdelivr.net/npm/tocbot@4/dist/tocbot.min.js" ></script>
  
  
    <script  src="https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@3/dist/jquery.fancybox.min.js" ></script>
  
  
    <script  src="https://cdn.jsdelivr.net/npm/anchor-js@4/anchor.min.js" ></script>
  
  
    <script defer src="https://cdn.jsdelivr.net/npm/clipboard@2/dist/clipboard.min.js" ></script>
  




  <script defer src="/js/leancloud.js" ></script>



  <script  src="https://cdn.jsdelivr.net/npm/typed.js@2/lib/typed.min.js" ></script>
  <script>
    (function (window, document) {
      var typing = Fluid.plugins.typing;
      var title = document.getElementById('subtitle').title;
      
        typing(title);
      
    })(window, document);
  </script>












  

  

  

  

  

  





<!-- 主题的启动项 保持在最底部 -->
<script  src="/js/boot.js" ></script>


</body>
</html>
